In mathematics, a conserved quantity of a dynamical system is a function H of the dependent variables that is a constant (in other words, conserved)[1] along each trajectory of the system. A conserved quantity can be a useful tool for qualitative analysis. Not all systems have conserved quantities, however the existence has nothing to do with linearity (a simplifying trait in a system) which means that finding and examining conserved quantities can be useful in understanding nonlinear systems.
Conserved quantities are not unique, since one can always add a constant to a conserved quantity.
Since most laws of physics express some kind of conservation, conserved quantities commonly exist in mathematic models of real systems. For example, any classical mechanics model will have energy as a conserved quantity so long as the forces involved are conservative.
For a first order system of differential equations
where bold indicates vector quantities, a scalar-valued function H(r) is a conserved quantity of the system if, for all time and initial conditions in some specific domain,
Note that by using the multivariate chain rule,
so that the definition may be written as
which contains information specific to the system and can be helpful in finding conserved quantities, or establishing whether or not a conserved quantity exists.